//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04B
TN_Widget.CreateTable([['String Cheese Incident','Ting Pavilion','Charlottesville, VA','Thursday','5/16/2024','7:00 PM','6216944','String-Cheese-Incident-5-16-2024'],['String Cheese Incident','Hard Rock Live At Etess Arena','Atlantic City, NJ','Friday','5/17/2024','8:00 PM','6216945','String-Cheese-Incident-5-17-2024'],['String Cheese Incident','MGM Music Hall at Fenway Park','Boston, MA','Saturday','5/18/2024','7:15 PM','6216946','String-Cheese-Incident-5-18-2024'],['String Cheese Incident','State Theatre - ME','Portland, ME','Sunday','5/19/2024','7:00 PM','6216947','String-Cheese-Incident-5-19-2024'],['String Cheese Incident','Stage AE','Pittsburgh, PA','Tuesday','5/21/2024','6:00 PM','6218968','String-Cheese-Incident-5-21-2024'],['String Cheese Incident','Beech Mountain Resort','Banner Elk, NC','Saturday','6/8/2024','7:00 PM','6318498','String-Cheese-Incident-6-8-2024'],['String Cheese Incident','Red Butte Garden','Salt Lake City, UT','Wednesday','6/26/2024','7:30 PM','6375952','String-Cheese-Incident-6-26-2024'],['String Cheese Incident','Summit Stage At Snow King Mountain Resort','Jackson, WY','Thursday','6/27/2024','TBD','6335081','String-Cheese-Incident-6-27-2024'],['String Cheese Incident','Summit Stage At Snow King Mountain Resort','Jackson, WY','Friday','6/28/2024','TBD','6335082','String-Cheese-Incident-6-28-2024'],['String Cheese Incident','KettleHouse Amphitheater','Bonner, MT','Saturday','6/29/2024','8:00 PM','6317447','String-Cheese-Incident-6-29-2024'],['String Cheese Incident','KettleHouse Amphitheater','Bonner, MT','Sunday','6/30/2024','8:00 PM','6317448','String-Cheese-Incident-6-30-2024'],['String Cheese Incident - 3 Day Pass','Red Rocks Amphitheatre','Morrison, CO','Friday','7/12/2024','TBD','6247905','String-Cheese-Incident---3-Day-Pass-7-12-2024'],['String Cheese Incident','Red Rocks Amphitheatre','Morrison, CO','Friday','7/12/2024','7:00 PM','6242385','String-Cheese-Incident-7-12-2024'],['String Cheese Incident','Red Rocks Amphitheatre','Morrison, CO','Saturday','7/13/2024','7:00 PM','6242386','String-Cheese-Incident-7-13-2024'],['String Cheese Incident','Red Rocks Amphitheatre','Morrison, CO','Sunday','7/14/2024','6:00 PM','6242387','String-Cheese-Incident-7-14-2024'],['String Cheese Incident - 3 Day Pass','McMenamins Historic Edgefield Amphitheater','Troutdale, OR','Thursday','7/25/2024','TBD','6319854','String-Cheese-Incident---3-Day-Pass-7-25-2024'],['String Cheese Incident','McMenamins Historic Edgefield Amphitheater','Troutdale, OR','Thursday','7/25/2024','6:00 PM','6318495','String-Cheese-Incident-7-25-2024'],['String Cheese Incident','McMenamins Historic Edgefield Amphitheater','Troutdale, OR','Friday','7/26/2024','6:00 PM','6318496','String-Cheese-Incident-7-26-2024'],['String Cheese Incident','McMenamins Historic Edgefield Amphitheater','Troutdale, OR','Saturday','7/27/2024','6:00 PM','6318497','String-Cheese-Incident-7-27-2024'],['String Cheese Incident','Remlinger Farms - WA','Carnation, WA','Sunday','7/28/2024','5:45 PM','6318499','String-Cheese-Incident-7-28-2024']],'String Cheese Incident','http://www.ticketnetwork.com/ticket/String-Cheese-Incident-events.aspx');